Skip to content

Bump github.com/gotenberg/gotenberg/v8 from 8.39.0 to 8.40.0 - #19

Merged
tooniez merged 1 commit into
mainfrom
dependabot/go_modules/github.com/gotenberg/gotenberg/v8-8.40.0
Nov 9, 2026
Merged

tooniez merged 1 commit into
mainfrom
dependabot/go_modules/github.com/gotenberg/gotenberg/v8-8.40.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 9, 2026

Copy link
Copy Markdown
Contributor

Bumps github.com/gotenberg/gotenberg/v8 from 8.39.0 to 8.40.0.

Release notes

Sourced from github.com/gotenberg/gotenberg/v8's releases.

8.40.0

[!IMPORTANT] 8.40.0 is the final release of Gotenberg 8. The next release is Gotenberg 9.

Security Fixes ⚠️

  • Pass the encryption passwords to QPDF as option values. QPDF received userPassword and ownerPassword as positional arguments, and it reads an argument that starts with @ as a file of further arguments. A password of @/proc/self/cmdline, with newlines in the other one, injected options such as --add-attachment, and the returned PDF embedded any file the gotenberg user can read. QPDF now receives --user-password= and --owner-password=, and every password encrypts the PDF as typed.
  • Treat every special-purpose address range as non-public. The *_DENY_PRIVATE_IPS checks let through ranges that IANA marks as not globally reachable, such as the IPv6 benchmarking range 2001:2::/48, while they refused its IPv4 twin 198.18.0.0/15. They now refuse every such block: 0.0.0.0/8, where Docker Desktop answers its host gateway, 192.0.0.0/24, the documentation ranges, 192.88.99.0/24 and 240.0.0.0/4 in IPv4, and the whole 2001::/23 block, 3fff::/20, 5f00::/16 and 100:0:0:1::/64 in IPv6.
  • Distrust the compromised eMudhra roots in Chromium from the first request. 8.39.0 removed them from the OS bundle and the Java trust store, but Chromium's root store still trusted emSign ECC Root CA - G3 until its component updater fetched a CRLSet, about two minutes after each start, and never without access to Google's update servers. Every Chromium restart opened the window again. A managed policy now distrusts emSign ECC Root CA - G3, emSign Root TLS CA - G3 and AAA Certificate Services at startup.
  • Keep the pinning proxy on with --chromium-host-resolver-rules. Any host-resolver rule turned the pinning proxy off, and with it the only layer that refuses a WebSocket handshake: with --chromium-deny-private-ips set, a page, or a Web Worker, could open a WebSocket to a private address, and Gotenberg only logged it. Gotenberg now applies the rules itself, with Chromium's MAP and EXCLUDE semantics, in its outbound checks and in the proxy, so the IP-class checks judge the address a rule maps a host to.

Behavior Changes

  • An invalid --chromium-host-resolver-rules stops Gotenberg at startup. Chromium skipped a rule it could not parse, so a typo silently sent requests elsewhere.
  • Gotenberg, not Chromium, applies the host-resolver rules. Loopback requests now go through the pinning proxy when a rule is set, and a host that only a MAP rule knows works as the URL to print, where it returned 403 before. Hops carried by the environment proxy keep their original host.
  • --chromium-proxy-server with an outbound policy logs a warning at startup. WebSocket handshakes reach that proxy without Gotenberg's checks, so enforce the policy there.
  • The *_DENY_PRIVATE_IPS checks refuse more ranges. See the security fix above. The rule covers whole blocks, so a few anycast services inside 192.0.0.0/24 and 2001::/23 are refused too.
  • The linux/386 image needs seccomp=unconfined on Docker 29.4 and later. Docker's default seccomp profile now denies socketcall on i386, to block the AF_ALG sockets of CVE-2026-31431, and Gotenberg opens its sockets through it on that architecture. The container fails to start with listen tcp :3000: socket: function not implemented. Run it with --security-opt seccomp=unconfined, or with a copy of Docker's default profile that allows socketcall, and keep the host kernel patched. This comes from Docker and affects earlier releases too.

Bug Fixes

  • LibreOffice stopped answering after a restart (#1713). Since 8.32.0, the socket port was picked before LibreOffice's outbound proxy started, so the kernel could hand that same port to the proxy. LibreOffice then ran without its socket, the health check reached the proxy and reported it healthy, and every LibreOffice request timed out until the container restarted. The port is now picked once the proxy listens, and the startup and health checks wait for LibreOffice's own UNO greeting. Thanks @​chladic.
  • Merging with pdfa on /forms/libreoffice/convert returned a PDF that was not PDF/A (#1705). Each document got the formats before the merge, which undid them. The formats now apply once, to the merged file, as on /forms/pdfengines/merge. Thanks @​APX403.
  • Chromium called Google services at every start (#1706). Optimization hints, network time queries and account checks reached Google, or logged blocked CONNECTs in locked-down deployments. Those features are now off, and the sign-in URL points to a closed loopback port. Thanks @​Moufle.
  • Aberrant print settings returned 500 (#1707). Only an empty content area returned 400. A scale outside 0.1 to 2, a negative margin, a zero paper size and every other print parameter Chromium rejects now return 400 too. Thanks @​SergeevDmitry.
  • optimizeImages swapped images between the pages of a merged PDF (#1708). Two merged documents may give their images the same name, such as X5. Extracted images are now matched by page and name. Thanks @​APX403.
  • optimizeImages made charts larger (#1714). Charts and other flat-color images often take more space as JPEG than in their lossless stream. A replacement is now kept only when it makes the file smaller, so the pass never grows a PDF. Thanks @​APX403.

Chore

  • Updated Chromium to 156.0.8078.79.
  • Updated LibreOffice to 26.8.2.
  • Dropped python3-distutils-extra, and the 45 unused packages it pulled in, from the images that ship LibreOffice (#1711, #1710). Thanks @​yusufgngor.
  • Pinned golangci-lint v2.15.0 in the Makefile, so local and CI linting match.
  • Updated Go dependencies.
Commits
  • 9857db8 test(integration): run the linux/386 integration tools without the default se...
  • 8500f43 test(integration): run linux/386 containers without the default seccomp profile
  • 74cdf87 fix(pdfcpu): only keep image replacements that shrink the PDF (#1714)
  • 9243257 fix(chromium): keep the pinning proxy on with host-resolver rules and apply t...
  • ce26468 build(docker): distrust the eMudhra roots in Chromium from the first request
  • a0091e9 fix(gotenberg): treat every special-purpose range IANA marks as not globally ...
  • c7c09d8 fix(gotenberg): treat special-purpose IPv4 ranges as non-public
  • 72b6d29 fix(qpdf): pass the encrypt passwords as option values, not positional arguments
  • ff6a89f fix(libreoffice): stop treating another listener on the socket port as LibreO...
  • 09df212 build(docker): drop python3-distutils-extra (#1710)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/gotenberg/gotenberg/v8](https://github.com/gotenberg/gotenberg) from 8.39.0 to 8.40.0.
- [Release notes](https://github.com/gotenberg/gotenberg/releases)
- [Commits](gotenberg/gotenberg@v8.39.0...v8.40.0)

---
updated-dependencies:
- dependency-name: github.com/gotenberg/gotenberg/v8
  dependency-version: 8.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 9, 2026
@tooniez
tooniez merged commit 26be5b1 into main Nov 9, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant